body {
    margin: 0;
    background: #f2f2f2;
}

#container {
    width: 1000px;
    margin: 0 auto;
}

#container nav ul {
    display: flex;
    margin: 0;
    list-style: none;
    background-color:black;
}

#container nav ul li {
    width: 150px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: #f2f2f2;
    font-size: 18px;
    font-weight: bold;
}

#container nav ul li:hover {
    background: rgb(191, 223, 13);
}

li.active {
    height: 36px;
    background-color: rgb(31, 122, 219);
    border-bottom: 4px solid #f2f2f2;
}

#container .news {
    width: 100%;
    height: 180px;
    display: flex;
    border-bottom: 1px solid #c0c0c0;
    padding: 15px;
}

#container .news .left {
    width: 270px;
}

#container .news .left img {
    width: 260px;
    height: 180px;
}

#container .news .right {
    display: flex;
    flex-direction: column;
    /* 垂直布局 */
}

#container .news p {
    color: #666;
    flex-grow: 1;
    /* 占用所有空间 */
}